clear;clc;
%% create session 
% using device file: [Constant.AutoMeasurementRootPath '\+MeasurementSession\@SimpleMeasurement\SIMLE_DEVICE.dat']
s=MeasurementSession.SimpleMeasurement();


%% get devices
rigol=s.getDevice('rigol');
tek=s.getDevice('tek');
zi=s.getDevice('dev3543');
laser64=s.getDevice('toptica64');

%%
tek.setWaveDC(1, 0.5);
laser64.setScanAmplitudeVolt(0.5).enableScan();

%%
laser64.setScanAmplitudeVolt(1).enableScan();

for volt = 70:0.1:95
    laser64.setScanOffsetVolt(volt);
    pause(2);
end


laser64.setScanOffsetVolt(89).setScanAmplitudeVolt(1.5).enableScan();


%%

laser64.disconnect_device();